package com.backend.system.beans;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 删除请求体
 *
 * @author backend-manage
 */
@ApiModel
@Data
public class DeleteReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -6158500169994943115L;

    /**
     * 要删除的数据的ID
     */
    @ApiModelProperty(value = "ID", required = true)
    @NotNull(message = "要删除的数据的ID不能为空")
    private Long id;
}
